﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;



namespace ProjectNocturnalFool
{
    sealed class GameLogic
    {
        #region Fields and Initialization

        static readonly GameLogic _instance = new GameLogic();
        public GameBoardLogic gameBoardLogic {get; set;}

        public GameStateLogic gameStateLogic;

        public GameCharacterSession gameCharacterSession;

         /// <summary>
        /// Access SiteStructure.Instance to get the singleton object.
        /// Then call methods on that instance.
        /// </summary>
        public static GameLogic Instance
        {
            get { return _instance; }
        }


        //public GameBoardLogic getGameBoardLogic() {
        //    return gameBoardLogic;
        //}


        private GameLogic() {
            gameBoardLogic = new GameBoardLogic();
            gameStateLogic = new GameStateLogic();
            gameCharacterSession = new GameCharacterSession();
        }
        #endregion

        #region Update
        public void Update(GameTime gametime) {
            gameBoardLogic.Update(gametime);
            gameStateLogic.Update();
        }
        #endregion
    }
}
